#include <iostream>
#include "rational.h"

using namespace std;

int main()
{
	
	Rational r1(-2,4);
	Rational r2(10,5);
	Rational r3(0,1);

	r1.print();
	r2.print();

	(r1 - r2).print();
	if (r1 < r2) cout << "ja" << endl; //cout << "r1 < r2" << endl;
	if (r2 < r3) cout << "ja" << endl;
	else cout << "nein" << endl;

    r3.print();
    
    Rational r4(r3);
    r4.print();
    if (r4 != r1) cout << "ja" << endl;
    if (r4 != r2) cout << "ja" << endl;
        else cout << "nein" << endl;

    (r1 - r2).print();
    (r3 - r2).print();
    (r3 - r4).print();
   	//if (r1 == r2) cout << "r1 == r2" << endl;
	//r1.print();
	//(r1.reduce(r1)).print();

	
	
}

